added samples
[windows-sources.git] / sdk / samples / all in on code / Visual Studio 2010 / CSMultiThreadedWebDownloader / DownloadStatus.cs
blob617d3d64fc059055a51a8197c6adcd64140fcadd
1 /****************************** Module Header ******************************\
2 * Module Name: DownloadStatus.cs
3 * Project: CSMultiThreadedWebDownloader
4 * Copyright (c) Microsoft Corporation.
5 *
6 * The enum DownloadStatus contains all status of
7 * an IDownloader instance.
8 *
9 * This source is subject to the Microsoft Public License.
10 * See http://www.microsoft.com/opensource/licenses.mspx#Ms-PL.
11 * All other rights reserved.
13 * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
14 * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
15 * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
16 \***************************************************************************/
18 namespace CSMultiThreadedWebDownloader
20 public enum DownloadStatus
22 /// <summary>
23 /// The DownloadClient is initialized.
24 /// </summary>
25 Initialized,
27 /// <summary>
28 /// The client is waiting for an idle thread / resource to start downloading.
29 /// </summary>
30 Waiting,
32 /// <summary>
33 /// The client is downloading data.
34 /// </summary>
35 Downloading,
37 /// <summary>
38 /// The client is releasing the resource, and then the downloading
39 /// will be paused.
40 /// </summary>
41 Pausing,
43 /// <summary>
44 /// The downloading is paused.
45 /// </summary>
46 Paused,
48 /// <summary>
49 /// The client is releasing the resource, and then the downloading
50 /// will be canceled.
51 /// </summary>
52 Canceling,
54 /// <summary>
55 /// The downloading is Canceled.
56 /// </summary>
57 Canceled,
59 /// <summary>
60 /// The downloading is Completed.
61 /// </summary>
62 Completed